Optimal. Leaf size=79 \[ x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \left (c+d x^2\right )^q \left (1+\frac {d x^2}{c}\right )^{-q} F_1\left (\frac {1}{2};-p,-q;\frac {3}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {441, 440}
\begin {gather*} x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (c+d x^2\right )^q \left (\frac {d x^2}{c}+1\right )^{-q} F_1\left (\frac {1}{2};-p,-q;\frac {3}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 440
Rule 441
Rubi steps
\begin {align*} \int \left (a+b x^2\right )^p \left (c+d x^2\right )^q \, dx &=\left (\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \left (1+\frac {b x^2}{a}\right )^p \left (c+d x^2\right )^q \, dx\\ &=\left (\left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \left (c+d x^2\right )^q \left (1+\frac {d x^2}{c}\right )^{-q}\right ) \int \left (1+\frac {b x^2}{a}\right )^p \left (1+\frac {d x^2}{c}\right )^q \, dx\\ &=x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \left (c+d x^2\right )^q \left (1+\frac {d x^2}{c}\right )^{-q} F_1\left (\frac {1}{2};-p,-q;\frac {3}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(172\) vs. \(2(79)=158\).
time = 0.05, size = 172, normalized size = 2.18 \begin {gather*} \frac {3 a c x \left (a+b x^2\right )^p \left (c+d x^2\right )^q F_1\left (\frac {1}{2};-p,-q;\frac {3}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right )}{3 a c F_1\left (\frac {1}{2};-p,-q;\frac {3}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right )+2 x^2 \left (b c p F_1\left (\frac {3}{2};1-p,-q;\frac {5}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right )+a d q F_1\left (\frac {3}{2};-p,1-q;\frac {5}{2};-\frac {b x^2}{a},-\frac {d x^2}{c}\right )\right )} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \left (b \,x^{2}+a \right )^{p} \left (d \,x^{2}+c \right )^{q}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (b\,x^2+a\right )}^p\,{\left (d\,x^2+c\right )}^q \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________